﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="AddNewP.aspx.vb" Inherits="AddNewP" %>

<%@ Register Assembly="ISNet.WebUI.WebCombo" Namespace="ISNet.WebUI.WebCombo" TagPrefix="ISWebCombo" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
     <style>
        input {
            font-family: Tahoma !important;
            font-size: 12px !important;
        }

        html * {
            font-family: Tahoma;
            font-size: 12px;
        }
    </style>
    <script type="text/ecmascript">
        function ClosePop() {
            window.parent.TINY.box.hide();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <br />
            <br />
            <center>
            <table>
                <tr>
                    <td>Fund Center</td>
                    <td>ผลิตภัณฑ์</td>
                </tr>
                <tr>
                    <td>
                        <ISWebCombo:WebCombo ID="FundCenterCombo" runat="server" UseDefaultStyle="True" DataTextField="Description" DataValueField="FundCenterCode" Height="20px" Width="200px" OnInitializeDataSource="FundCenterCombo_InitializeDataSource" ValidateRequestMode="Inherit" AllowWildCardSearch="true">
                            <LayoutSettings AlwaysShowAllRowsOnDropdown="true" AlwaysShowHelpButton="false" EntryMode="AutoComplete" ComboMode="MultipleColumns">
                            </LayoutSettings>
                            <Columns>
                                <ISWebCombo:WebComboColumn BaseFieldName="Description" Name="Description" HeaderText="ชื่อ FundCenter" Width="250px" />
                                <ISWebCombo:WebComboColumn BaseFieldName="FundCenterCode" Name="FundCenterCode" HeaderText="รหัส FundCenter" Width="80px" />
                            </Columns>
                        </ISWebCombo:WebCombo>
                    </td>
                    <td>
                        <ISWebCombo:WebCombo ID="ProductCombo" runat="server" UseDefaultStyle="true" DataTextField="Description" DataValueField="ProductCode" Height="20px" OnInitializeDataSource="ProductCombo_InitializeDataSource" AdditionalSearchFields="ProductCode" AllowWildCardSearch="true">
                            <LayoutSettings AlwaysShowAllRowsOnDropdown="true" AlwaysShowHelpButton="false" EntryMode="AutoComplete" AllowAddItem="true" ComboMode="MultipleColumns">
                                <TextSettings ParentEmptyPromptText="กรุณาเลือก Fund Center" />
                            </LayoutSettings>
                            <Columns>
                                <ISWebCombo:WebComboColumn BaseFieldName="Description" Name="Description" HeaderText="ชื่อผลิตภัณฑ์" Width="250px" />
                                <ISWebCombo:WebComboColumn BaseFieldName="ProductCode" Name="FundCenterCode" HeaderText="รหัสผลิตภัณฑ์" Width="80px" />
                             </Columns>
                        </ISWebCombo:WebCombo>          
                    </td>
                </tr>
            </table>
            <asp:Button ID="SaveDocument" runat="server" Text="บันทึก" Width="60px" />&nbsp;&nbsp;<asp:Button ID="CloseBtn" runat="server" Text="ปิด" Width="60px" OnClientClick="ClosePop()" />
        </center>
        </div>
    </form>
        <%=scripttext%>
    <script>
        var combo1 = document.getElementById("FundCenterCombo");
        combo1.style.height = "20px";

        var combo2 = document.getElementById("ProductCombo");
        combo2.style.height = "20px";
    </script>
    <style>
        .WC4-DD-N {
            height: 0px;
        }

        .WC4-DD-A {
            height: 0px;
        }
    </style>
</body>
</html>
